/* NOTICE
 
    Jim - the Java Image Manager, copyright (c) 2005 - 2007 Grant Gardner 
 
    Jim is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Jim is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
    In addition, as a special exception, you are permitted to link this code
    with the 3rd party libraries required to compile this file and to
    distribute a linked combination including them. You must obey the
    GNU General Public License in all respects for all of the code except for
    those 3rd party libraries that are licenced under terms incompatible with the
    GNU General Public License.  
 
 
 NOTICE */

/*
 * Created by dnoakes on 27-Nov-2002 10:10:47 using IntelliJ IDEA.
 */

package au.com.lastweekend.jim.io.exif.makernote.olympus;

import java.util.HashMap;
import java.util.Map;

import au.com.lastweekend.jim.io.metadata.Directory;

/**
 * 
 * 
 * 
 * @version $Id: OlympusMakernoteDirectory.java,v 1.3 2006/02/20 12:21:10 ggardner Exp $
 * @author <a href="mailto:grant@lastweekend.com.au"> <Grant Gardner> </a>
 */
public class OlympusMakernoteDirectory extends Directory {

    public static final int TAG_OLYMPUS_SPECIAL_MODE = 0x0200;
    public static final int TAG_OLYMPUS_JPEG_QUALITY = 0x0201;
    public static final int TAG_OLYMPUS_MACRO_MODE = 0x0202;
    public static final int TAG_OLYMPUS_UNKNOWN_1 = 0x0203;
    public static final int TAG_OLYMPUS_DIGI_ZOOM_RATIO = 0x0204;
    public static final int TAG_OLYMPUS_UNKNOWN_2 = 0x0205;
    public static final int TAG_OLYMPUS_UNKNOWN_3 = 0x0206;
    public static final int TAG_OLYMPUS_FIRMWARE_VERSION = 0x0207;
    public static final int TAG_OLYMPUS_PICT_INFO = 0x0208;
    public static final int TAG_OLYMPUS_CAMERA_ID = 0x0209;
    public static final int TAG_OLYMPUS_DATA_DUMP = 0x0F00;

    protected static final HashMap<Integer, String> TAG_NAME_MAP = new HashMap<Integer, String>();

    static {
        TAG_NAME_MAP.put(TAG_OLYMPUS_SPECIAL_MODE, "Special Mode");
        TAG_NAME_MAP.put(TAG_OLYMPUS_JPEG_QUALITY, "Jpeg Quality");
        TAG_NAME_MAP.put(TAG_OLYMPUS_MACRO_MODE, "Macro");
        TAG_NAME_MAP.put(TAG_OLYMPUS_UNKNOWN_1, "Makernote Unknown 1");
        TAG_NAME_MAP.put(TAG_OLYMPUS_DIGI_ZOOM_RATIO, "DigiZoom Ratio");
        TAG_NAME_MAP.put(TAG_OLYMPUS_UNKNOWN_2, "Makernote Unknown 2");
        TAG_NAME_MAP.put(TAG_OLYMPUS_UNKNOWN_3, "Makernote Unknown 3");
        TAG_NAME_MAP.put(TAG_OLYMPUS_FIRMWARE_VERSION, "Firmware Version");
        TAG_NAME_MAP.put(TAG_OLYMPUS_PICT_INFO, "Pict Info");
        TAG_NAME_MAP.put(TAG_OLYMPUS_CAMERA_ID, "Camera Id");
        TAG_NAME_MAP.put(TAG_OLYMPUS_DATA_DUMP, "Data Dump");
    }

    public OlympusMakernoteDirectory(Directory parent) {

        super(parent);
        this.setDescriptor(new OlympusMakernoteDescriptor(this));
    }

    @Override
    public String getName() {

        return "Olympus Makernote";
    }

    @Override
    protected Map<Integer, String> getTagNameMap() {

        return TAG_NAME_MAP;
    }
}